# -*- coding: utf-8 -*-
""" 
@author: ertao.xyz
@create: 2021-12-16 11:17
@description: 
"""
from pydantic import BaseModel, Field, EmailStr
from tortoise.contrib.pydantic import pydantic_model_creator
from typing import List, Dict, Optional
from . import model

DataokeOut = pydantic_model_creator(model.Dataoke)
DataokeIn = pydantic_model_creator(model.Dataoke, exclude_readonly=True, exclude=('user',))

JingdongOut = pydantic_model_creator(model.Jingdong)
JingdongIn = pydantic_model_creator(model.Jingdong, exclude_readonly=True, exclude=('user',))

FenxiaoOut = pydantic_model_creator(model.Fenxiao)
FenxiaoIn = pydantic_model_creator(model.Fenxiao, exclude_readonly=True, exclude=('user',))

MeituanOut = pydantic_model_creator(model.Meituan)
MeituanIn = pydantic_model_creator(model.Meituan, exclude_readonly=True, exclude=('user',))

PinduoduoOut = pydantic_model_creator(model.Pinduoduo)
PinduoduoIn = pydantic_model_creator(model.Pinduoduo, exclude_readonly=True, exclude=('user',))

TaobaoOut = pydantic_model_creator(model.Taobao)
TaobaoIn = pydantic_model_creator(model.Taobao, exclude_readonly=True, exclude=('user',))

VipOut = pydantic_model_creator(model.Vip)
VipIn = pydantic_model_creator(model.Taobao, exclude_readonly=True, exclude=('user',))

WeixinmpOut = pydantic_model_creator(model.Weixinmp)
WeixinmpIn = pydantic_model_creator(model.Weixinmp, exclude_readonly=True, exclude=('user',))
